package com.hzqy.persistence.dao.pricesensitiveuser;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.PriceSensitiveUsersVo;

@Repository
public class PriceSensitiveUsersDao extends PersistenceDao<PriceSensitiveUsersVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	public int insertPriceSensitiveUserInfo(PriceSensitiveUsersVo priceSensitiveUsersVo) {
		return getSqlSession().insert(this.getNamespace() + "insertPriceSensitiveUserInfo",priceSensitiveUsersVo);
	}
	
	public int updatePriceSensitiveUserCount(Map<String,String> map) {
		return getSqlSession().update(this.getNamespace()+"updatePriceSensitiveUserCount", map);
	}
	
	public List<PriceSensitiveUsersVo> selectPriceSensitiveUserList(Map<String,String> map){
		return getSqlSession().selectList(this.getNamespace()+"selectPriceSensitiveUserList", map);
	}
	
	public PriceSensitiveUsersVo selectPriceSensitiveUserByServerid(Map<String,String> map){
		return getSqlSession().selectOne(this.getNamespace()+"selectPriceSensitiveUserByServerid", map);
	}
	
}
